<?php
header("content=text/html; charset=utf-8");
/* 连接Webservice */
/*
$client = new SoapClient(null,array('trace'=>1,'location'=>'http://km.ztjs.cn/sso/services/AuthenticationService','uri'=>'http://km.ztjs.cn/sso/services/AuthenticationService'));
$p = array(
	new SoapParam("subSystemName",'集团外网'),
	new SoapParam("userIP",'192.168.7.77'),
	new SoapParam("userName",'zhiliang'),
	new SoapParam("password",'123456')
);
try {
	$result = $client->__soapCall("authenticate",$p);
	echo $result;
} catch(SoapFault $e) {
	echo "错误：" . $e->getMessage();
}
*/

$client = new SoapClient('http://km.ztjs.cn/sso/services/AuthenticationService?wsdl');
/*
echo $client->authenticate(
array(
	new SoapParam("subSystemName",'集团外网'),
	new SoapParam("userIP",'192.168.7.77'),
	new SoapParam("userName",'zhiliang'),
	new SoapParam("password",'123456')
	)
);
*/
$param = array('subSystemName' => '集团外网','userIP' => '192.168.7.77','userName' => 'zhiliang','password' => '123456');
try {
	$arr = $client->__soapCall('authenticate',$param);
	echo $arr;
} catch(SoapFault $e) {
	echo "错误：" . $e->getMessage();
}
/*
$client = new SoapClient('http://km.ztjs.cn/sso/services/SubSystemService?wsdl');
$tmp=array();
$tmp=$client->getAllSubSystems();
foreach($tmp AS $row){
		echo $row->name . "<br/>";
}
*/
?>